<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>02.使用js来创建vDom</title>
</head>
<body>
  <div id="root"></div>

  <!-- 2. 引入react -->
  <!-- 2.1 引入 react 核心库 -->
  <script src="../js/react.development.js"></script>
  <!-- 2.2 引入 react-dom，用于支持 react 操作 DOM -->
  <script src="../js/react-dom.development.js"></script>
  <script>
    const vDom = React.createElement('h1', {id: 'title'}, React.createElement('span', null, 'hello my react') )
    ReactDOM.render(vDom, document.getElementById('root'))
  </script>
</body>
</html>